import * as mongoose from 'mongoose';

import fastFormatTimeSchema from './base';

const { Schema } = mongoose;

const loginUsersSchema = new Schema(
  {
    token: Schema.Types.String,
    userId: {
      type: Schema.Types.ObjectId,
      ref: 'user'
    },
    exp: Schema.Types.Number,
    iat: Schema.Types.Number,
  }
);

export default loginUsersSchema;
